package com.finance.system.user.controller;

import com.finance.system.user.entity.UserOutbound;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

@RestController
public class DateController {

    @PostMapping("testTime")
    public LocalDate getDate(@RequestBody UserOutbound user){
        return user.getCreateAt().toLocalDate();
    }

    @PostMapping("testTime1")
    public LocalDate getDate1(UserOutbound user){
        return user.getCreateAt().toLocalDate();
    }
}
